package com.stylefeng.guns.modular.customer.transfer;

import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;

import java.util.ArrayList;
import java.util.List;

/**
 * 联系人excel 导入导出模板类
 */
@Data
public class ContactXlsM {

    @ExcelIgnore
    private Integer customerCompanyId;

    @Excel(name = "客户名称",width = 20)
    @NotBlank(message = "客户名称不能为空")
    private String customerCompanyName;

    @Excel(name = "统一社会信用代码",width = 20)
    @NotBlank(message = "统一社会信用代码不能为空")
    private String unifiedSocialCreditCode;

    @Excel(name = "姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;

    @Excel(name = "所属部门")
    private String departName;

    @Excel(name = "岗位职务")
    private String post;

    @Excel(name = "手机号",width = 12)
    private String mobileNum;

    @Excel(name = "备用手机号",width = 12)
    private String standbyMobileNum;

    @Excel(name = "办公电话",width = 15)
    private String landline;

    @Excel(name = "传真",width = 15)
    private String facsimile;

    @Excel(name = "电子邮箱",width = 20)
    @Email
    private String email;

    @Excel(name = "微信号",width = 15)
    private String wechat;

    @Excel(name = "qq",width = 15)
    private String qq;

    @Excel(name = "态度",width = 15)
    private String attitude;

    @Excel(name = "备注",width = 20)
    private String remark;

    public static List<ContactXlsM> example(){
        List<ContactXlsM> list = new ArrayList<>();
        ContactXlsM contactXlsM = new ContactXlsM();
        list.add(contactXlsM);
        contactXlsM.setCustomerCompanyName("xxx有限公司");
        contactXlsM.setUnifiedSocialCreditCode("91440300088450013U");
        contactXlsM.setName("李美美");
        contactXlsM.setDepartName("采购部");
        contactXlsM.setPost("部门经理");
        contactXlsM.setMobileNum("18711156674");
        contactXlsM.setStandbyMobileNum("18711156675");
        contactXlsM.setLandline("010-8998989");
        contactXlsM.setFacsimile("010-8998989");
        contactXlsM.setEmail("887878@qq.com");
        contactXlsM.setWechat("limeimei1990");
        contactXlsM.setQq("111111");
        contactXlsM.setAttitude("积极");
        contactXlsM.setRemark("单身");
        return list;
    }

}
